package xyz.jangle.service;

import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.springframework.web.multipart.MultipartFile;

import xyz.jangle.model.BsAttachment;

public interface BsAttachmentService {
	/**
	 * 
	 * @param demo
	 * @return
	 */
	public Map<String, Object> selectPage(BsAttachment demo);

	/**
	 * 
	 * @param record
	 * @return
	 */
	public Map<String, Object> selectByPrimaryKey(BsAttachment record);

	/**
	 * 
	 * @param record
	 * @return
	 */
	public Map<String, Object> insertOrUpdate(BsAttachment record);

	/**
	 * 批量删除
	 * @param record
	 * @return
	 */
	public Map<String, Object> batchDeleteByPrimaryKey(BsAttachment record);

	
	public Map<String, Object> deleteByPrimaryKey(BsAttachment record);

	/**
	 * 下载
	 * @param record
	 * @param response
	 * @return 
	 */
	public Map<String, Object> downLoadById(BsAttachment record, HttpServletResponse response);

	/**
	 * 上传附件
	 * @param files
	 * @param record
	 * @return
	 */
	public Map<String, Object> uploadBatch(MultipartFile[] files, BsAttachment record);

}
